﻿CREATE PROCEDURE [dbo].[ETL_SP_DeleteTask]
	@taskId uniqueidentifier
AS
	delete from ETL_Task where Id = @taskId;
	delete from ETL_TaskRunMode where TaskId = @taskId;
	delete from ETL_TaskExecuteRecord where TaskId = @taskId;
	delete from ETL_TaskParameter where TaskId = @taskId;
	delete from ETL_Batch where TaskId = @taskId;
RETURN 0
